home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / ExampleLibrary / Makefile.Examples.MrC < prev    next >
Encoding:
Makefile  |  1996-11-19  |  8.4 KB  |  251 lines  |  [TEXT/MPS ]

  1. # This makefile was produced at 10:33:24 AM on Wed, Apr 5, 1995 by
  2. # MakeMake 2.0d38q1 (4/14/1992) by Rick Holzgrafe, scott douglass, Jeff Holcomb, MQ.
  3.  
  4. Sources             = :Sources:
  5. Objects                = :Objects:
  6. Built                = :Built:
  7.  
  8. "{Objects}MrC:"    ƒ "{Sources}"
  9.  
  10. .a.o    ƒ    .a
  11.     Echo "∂t∂tAssembling {Default}.a"
  12.         {Asm} {DepDir}{Default}.a -o {Targ} -lo {Targ}.lst {StdADump} {AOptions} {StdAIncludes}
  13.  
  14. .c.o    ƒ    .c
  15.     Echo "∂t∂tCompiling {Default}.c"
  16.         {C} {DepDir}{Default}.c -o {Targ} {StdCDump} {COptions} {StdCIncludes}
  17.  
  18. .cp.o    ƒ    .cp
  19.     Echo "∂t∂tCompiling {Default}.cp"
  20.         {CPlus} {DepDir}{Default}.cp -o {Targ} {StdCPDump} {CPOptions} {StdCPIncludes}
  21.  
  22. .p.o    ƒ    .p
  23.     Echo "∂t∂tCompiling {Default}.p"
  24.         {Pascal} {DepDir}{Default}.p -o {Targ} {StdPDump} {POptions} {StdPIncludes}
  25.  
  26. TARGETS = "{Objects}MrC:ExampleLibrary.cl.o" ∂
  27.     "{Objects}MrC:ExampleLibrary.o" ∂
  28.     "{Objects}MrC:ExampleLibrarySymbols.cp.o" ∂
  29.     "{Objects}MrC:ExampleLibrary.RSRC" ∂
  30.     "{Built}MrC:ExampleLibraryPPC" ∂
  31.     "{Objects}MrC:TestExampleClass.xcoff" ∂
  32.     "{Objects}MrC:TestExampleClass.pef" ∂
  33.     "{Built}MrC:TestExampleClassPPC"
  34.  
  35. DOT_H = "{Sources}ExampleClass.h"
  36.  
  37. DOT_R = "{Sources}ExampleLibrary.r" ∂
  38.     "{Sources}TestExampleClass.PPC.r"
  39.  
  40. SRCS = "{Sources}ExampleClass.cp" ∂
  41.     "{Sources}ExampleLibrarySymbols.cp" ∂
  42.     "{Sources}TestExampleClass.cp"
  43.  
  44. # For "{Objects}MrC:ExampleLibrary.o"
  45. OBJS_01 = "{Objects}MrC:ExampleClass.cp.o"
  46.  
  47. # For "{Objects}MrC:TestExampleClass.xcoff"
  48. OBJS_05 = "{Objects}MrC:TestExampleClass.cp.o"
  49.  
  50. # For "{Objects}MrC:ExampleLibrary.o"
  51. LIBS_01 = "{Objects}MrC:ExampleLibrarySymbols.cp.o"
  52.  
  53. # For "{Objects}MrC:ExampleLibrary.RSRC"
  54. LIBS_03 = "{Objects}MrC:ExampleLibrary.o" ∂
  55.     "{SLMLibraries}MrCLibraries:LibraryManagerPPC.o"
  56.  
  57. # For "{Objects}MrC:TestExampleClass.xcoff"
  58. LIBS_05 = "{Objects}MrC:ExampleLibrary.cl.o" ∂
  59.     "{SLMLibraries}MrCLibraries:LibraryManagerPPC.o"
  60.  
  61. # For "{Built}MrC:ExampleLibraryPPC"
  62. RES_04 = "{Sources}ExampleLibrary.r"
  63.  
  64. # For "{Built}MrC:TestExampleClassPPC"
  65. RES_07 = "{Sources}TestExampleClass.PPC.r"
  66.  
  67. # For "{Objects}MrC:ExampleLibrary.cl.o"
  68. EXDEPS_00 = "{Objects}MrC:ExampleLibrary.RSRC"
  69.  
  70. # For "{Objects}MrC:ExampleLibrarySymbols.cp.o"
  71. EXDEPS_02 = "{Sources}ExampleLibrarySymbols.cp"
  72.  
  73. # For "{Objects}MrC:ExampleLibrary.RSRC"
  74. EXDEPS_03 = "{Sources}ExampleLibrary.exp"
  75.  
  76. # For "{Objects}MrC:TestExampleClass.pef"
  77. EXDEPS_06 = "{Objects}MrC:TestExampleClass.xcoff"
  78.  
  79. # For "{Built}MrC:TestExampleClassPPC"
  80. EXDEPS_07 = "{Objects}MrC:TestExampleClass.pef"
  81.  
  82. StdAIncludes =  -i "{AIncludes}"
  83. StdCIncludes =  -i "{CIncludes}" -i "{SLMInterfaces}CIncludes:"
  84. StdCPIncludes = -i "{CIncludes}" -i "{SLMInterfaces}CIncludes:"
  85. StdPIncludes = 
  86. StdADump     = 
  87. StdCDump     = 
  88. StdPDump     = 
  89. StdCPDump    =  
  90. LIB          = PPCLink -sym on {SymbolOption} -xm library -dead off
  91. LINK         = PPCLink {SymbolOption}
  92. REZ          = Rez -d GENERATING68K=0 -d GENERATINGPOWERPC=1
  93. Asm          = PPCAsm
  94. C            = MrC
  95. CPlus        = MrCpp
  96. COUNT        = Count
  97. COUNTOPTS    = 
  98. CTAGS        = Ctags
  99. CTAGSOPTS    = -p -local -update
  100. DELETE       = Delete
  101. DELETEOPTS   = -i
  102. FILES        = Files
  103. FILESOPTS    = -l
  104. LIBOPTS      = 
  105. LINKOPTS     = 
  106. MAKEFILE     = Makefile
  107. PRINT        = Print
  108. PRINTOPTS    = 
  109. SETFILE      = SetFile
  110. SETFILEOPTS  = -t 'MPST' -c 'MPS '
  111.  
  112. AOptions = {MyPreAOptions}  -dialect power -define MRC=1 {MyAOptions}
  113.  
  114. COptions = {MyPreCOptions}  -opt off -y "{TempFolder}" -notonce {SymbolOption} {MyCOptions}
  115.  
  116. ROptions = {MyPreROptions}  {SymbolOption} {MyROptions}
  117.  
  118. CPOptions = {MyPreCPlusOptions}  -opt off -y "{TempFolder}" -notonce {SymbolOption} {MyCPlusOptions}
  119.  
  120. all    ƒ {TARGETS}
  121.  
  122. "{Objects}MrC:ExampleLibrary.cl.o"    ƒ {EXDEPS_00}
  123.     {SETFILE} -m . {Targ}
  124.  
  125. "{Objects}MrC:ExampleLibrary.o"    ƒ {OBJS_01} {LIBS_01}
  126.     If {Progress}; Echo "∂t∂tCreating Library {Targ}"; End
  127.     {LIB} {LIBOPTS} -o {Targ} {OBJS_01} {LIBS_01}
  128.  
  129. "{Objects}MrC:ExampleLibrarySymbols.cp.o"    ƒ {EXDEPS_02}
  130.     If {Progress}; Echo "        Compiling ExampleLibrarySymbols.cp"; End; ∂
  131.     {CPlus} "{Sources}"ExampleLibrarySymbols.cp ∂
  132.         {CPOptions} -sym on,alltypes {StdCPIncludes} -o {Targ}
  133.  
  134. "{Objects}MrC:ExampleLibrary.RSRC"    ƒ {LIBS_03} {EXDEPS_03}
  135.     BuildSharedLibrary -oldPPCLink -powerpc -xcoffSymfile -mrc "{Objects}MrC:ExampleLibrary.o" ∂
  136.         {SymbolOption} -symfile  "{Built}MrC:ExampleLibraryPPC.xSYM" ∂
  137.         -preservetemps ∂
  138.         -keepClientFiles ∂
  139.         -logout "{SLMLibraries}MrCLibraries:ExampleLibrary.log" ∂
  140.         -lib "{Objects}MrC:ExampleLibrary.RSRC" ∂
  141.         -obj "{Objects}MrC:ExampleLibrary" ∂
  142.         -clientfile "{Objects}MrC:ExampleLibrary.cl.o" ∂
  143.         -exp "{Sources}ExampleLibrary.exp" ∂
  144.         -i "{Sources}" ∂
  145.         -i "{SLMInterfaces}CIncludes:" ∂
  146.         -i "{Sources}" ∂
  147.         "{SLMLibraries}MrCLibraries:"LibraryManagerPPC.o ∂
  148.         "{PPCLibraries}"MrCPlusLib.o ∂
  149.         "{PPCLibraries}"StdCLib.xcoff ∂
  150.         "{PPCLibraries}"PPCCRuntime.o ∂
  151.         "{PPCLibraries}"InterfaceLib.xcoff 
  152.  
  153. "{Built}MrC:ExampleLibraryPPC"    ƒƒ {RES_04} ∂
  154.         "{SLMInterfaces}RIncludes:VersionResource.r" ∂
  155.         "{RIncludes}SysTypes.r" ∂
  156.         "{Objects}MrC:ExampleLibrary.RSRC"
  157.     If {Progress}; Echo "∂t∂tRezzing {Targ}"; End
  158.     {REZ} -t libr -c OMGR -s "{Objects}MrC:" -i "{RIncludes}" ∂
  159.         -i "{SLMInterfaces}RIncludes:" ∂
  160.         -i "{Objects}MrC:" -o {Targ} {RES_04}
  161.  
  162. "{Built}MrC:ExampleLibraryPPC"    ƒƒ {RES_04} ∂
  163.         "{SLMInterfaces}RIncludes:VersionResource.r" ∂
  164.         "{RIncludes}SysTypes.r" ∂
  165.         "{Objects}MrC:ExampleLibrary.RSRC"
  166.     {SETFILE} -a ib {Targ}
  167.  
  168. "{Objects}MrC:TestExampleClass.xcoff"    ƒƒ {OBJS_05} {LIBS_05}
  169.     If {Progress}; Echo "∂t∂tLinking {Targ}"; End
  170.     {LINK} -w -main main -map "{Objects}MrC:TestExampleClass.map" ∂
  171.         "{SLMLibraries}MrCLibraries:"LibraryManagerPPC.o "{PPCLibraries}"StdCLib.xcoff ∂
  172.         "{PPCLibraries}"PPCCRuntime.o ∂
  173.         "{PPCLibraries}"InterfaceLib.xcoff  -o {Targ} ∂
  174.         {OBJS_05} {LIBS_05}
  175.  
  176. "{Objects}MrC:TestExampleClass.pef"    ƒ {EXDEPS_06}
  177.     MakePef "{Objects}MrC:"TestExampleClass.xcoff -o "{Objects}MrC:"TestExampleClass.pef ∂
  178.         -l InterfaceLib.xcoff=InterfaceLib -l StdCLib.xcoff=StdCLib         
  179.     Duplicate -y -d "{Objects}MrC:"TestExampleClass.pef "{Built}MrC:"TestExampleClassPPC 
  180.     If "{SymbolOption}" != "" 
  181.         MakeSym -w -o "{Built}MrC:"TestExampleClassPPC.xSYM -r "{Objects}MrC:"TestExampleClass.xcoff 
  182.         {SETFILE} -c 'R2Db' -t 'MPSY' "{Built}MrC:"TestExampleClassPPC.xSYM 
  183.     End
  184.  
  185. "{Built}MrC:TestExampleClassPPC"    ƒƒ {RES_07} {EXDEPS_07} ∂
  186.         "{RIncludes}SysTypes.r" "{RIncludes}Types.r" ∂
  187.         "{SLMInterfaces}RIncludes:VersionResource.r" ∂
  188.         "{RIncludes}CodeFragmentTypes.r"
  189.     If {Progress}; Echo "∂t∂tRezzing {Targ}"; End
  190.     {REZ} -t APPL -c MOOT -s "{Objects}MrC:" -i "{RIncludes}" ∂
  191.         -i "{SLMInterfaces}RIncludes:" ∂
  192.         -i "{Objects}MrC:" -o {Targ} {RES_07}
  193.  
  194. "{Built}MrC:TestExampleClassPPC"    ƒƒ {EXDEPS_07} {RES_07} ∂
  195.         "{RIncludes}SysTypes.r" "{RIncludes}Types.r" ∂
  196.         "{SLMInterfaces}RIncludes:VersionResource.r" ∂
  197.         "{RIncludes}CodeFragmentTypes.r"
  198.     {SETFILE} -a iB {Targ}
  199.  
  200. clean    ƒ
  201.     {DELETE} {DELETEOPTS} {OBJS_01} {OBJS_05}
  202.  
  203. clobber    ƒ clean
  204.     {DELETE} {DELETEOPTS} {TARGETS}
  205.  
  206. count    ƒ
  207.     {COUNT} {COUNTOPTS} {DOT_H} {DOT_R} {SRCS}
  208.  
  209. files    ƒ
  210.     {FILES} {FILESOPTS} {TARGETS} {MAKEFILE} {DOT_H} {DOT_R} {SRCS} {OBJS_01} ∂
  211.         {OBJS_05}
  212.  
  213. print    ƒ
  214.     {PRINT} {PRINTOPTS} {MAKEFILE} {DOT_H} {DOT_R} {SRCS}
  215.  
  216. tags    ƒ {DOT_H} {SRCS}
  217.     {CTAGS} {CTAGSOPTS} {C_INCDIRS} {NewerDeps}
  218.  
  219. "{Objects}MrC:ExampleClass.cp.o" ƒ ∂
  220.         "{CIncludes}Events.h" "{CIncludes}Types.h" ∂
  221.         "{CIncludes}ConditionalMacros.h" "{CIncludes}MixedMode.h" ∂
  222.         "{CIncludes}Traps.h" "{CIncludes}Quickdraw.h" ∂
  223.         "{CIncludes}QuickdrawText.h" "{CIncludes}IntlResources.h" ∂
  224.         "{CIncludes}OSUtils.h" ∂
  225.         "{SLMInterfaces}CIncludes:GlobalNew.h" ∂
  226.         "{CIncludes}stddef.h" "{Sources}ExampleClass.h" ∂
  227.         "{SLMInterfaces}CIncludes:LibraryManager.h" ∂
  228.         "{CIncludes}string.h" ∂
  229.         "{SLMInterfaces}CIncludes:LibraryManagerClasses.h" ∂
  230.         "{SLMInterfaces}CIncludes:LibraryManagerUtilities.h"
  231.  
  232. "{Objects}MrC:ExampleLibrarySymbols.cp.o" ƒ ∂
  233.         "{Sources}ExampleClass.h" ∂
  234.         "{SLMInterfaces}CIncludes:LibraryManager.h" ∂
  235.         "{CIncludes}stddef.h" "{CIncludes}string.h" "{CIncludes}Types.h" ∂
  236.         "{CIncludes}ConditionalMacros.h" "{CIncludes}MixedMode.h" ∂
  237.         "{CIncludes}Traps.h" ∂
  238.         "{SLMInterfaces}CIncludes:LibraryManagerClasses.h"
  239.  
  240. "{Objects}MrC:TestExampleClass.cp.o" ƒ ∂
  241.         "{Sources}ExampleClass.h" ∂
  242.         "{SLMInterfaces}CIncludes:LibraryManager.h" ∂
  243.         "{CIncludes}stddef.h" "{CIncludes}string.h" "{CIncludes}Types.h" ∂
  244.         "{CIncludes}ConditionalMacros.h" "{CIncludes}MixedMode.h" ∂
  245.         "{CIncludes}Traps.h" ∂
  246.         "{SLMInterfaces}CIncludes:LibraryManagerClasses.h" ∂
  247.         "{SLMInterfaces}CIncludes:LibraryManagerUtilities.h" ∂
  248.         "{CIncludes}ctype.h" "{CIncludes}Events.h" "{CIncludes}Quickdraw.h" ∂
  249.         "{CIncludes}QuickdrawText.h" "{CIncludes}IntlResources.h" ∂
  250.         "{CIncludes}OSUtils.h"
  251.